namespace Atom.Utility.Data
{
    using System;
    using System.Configuration;

    public static class DatabaseFactory
    {
        public static Database CreateDatabase(ConnectionStringSettings setting)
        {
            return new Database(setting);
        }

        public static Database CreateDatabase(string name)
        {
            return new Database(ConfigurationManager.ConnectionStrings[name]);
        }
    }
}
